package o2o.dao.PO.company.postman;

import lombok.Data;
import lombok.experimental.Accessors;
import o2o.dao.TO.sync.PostTypeTO;
import o2o.dao.VO.company.postman.PostTypeInfoVO;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @User: @Created by yangtk
 * @Date: @Date 2019/7/30 10:57
 * @Classname: PostTypeInfo
 * @To change this template use File | Settings | File Templates.
 */
@Data
@Accessors(chain = true)
public class PostTypeInfo implements Serializable {
    private Long id;
    private Integer type;
    private String name;
    private int openState = 0;
    private String special;
    private String note;
    private int delFlag = 0;
    private String createUser;
    private Long createTime;
    private String updateUser;
    private Date updateDate;

    public PostTypeInfoVO convert2VO() {
        PostTypeInfoVO vo = new PostTypeInfoVO();
        BeanUtils.copyProperties(this, vo);
        return vo;
    }
    public PostTypeTO convert2TO() {
        PostTypeTO vo = new PostTypeTO();
        BeanUtils.copyProperties(this, vo);
        return vo;
    }

}

